import axios from "@/api";

// 获取商品 分类
export function getGoodsCategories(data = { parent_id: 0 }) {
  // 获取goods
  return axios.get("goods/categories", data).then((resp) => {
    if (resp && resp.code == 1) {
      return resp.data;
    }
    return Promise.reject();
  });
}
